﻿using System.Data;
using Koonsoft.HYCRM.DAL;

namespace Koonsoft.HYCRM.BLL
{
    public class FinancialAuditBLL
    {
        private FinancialAuditDAL _dal = null;

        protected FinancialAuditDAL DAL
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new FinancialAuditDAL();
                }

                return _dal;
            }
        }

        /// <summary>
        /// 执行按单对账
        /// </summary>
        /// <param name="beginDate"></param>
        /// <param name="finishDate"></param>
        /// <param name="branchID"></param>
        public void AuditByOrders(string beginDate, string finishDate, int branchID)
        {
            DAL.AuditByOrders(beginDate, finishDate, branchID);
        }

        /// <summary>
        /// 查询某月对账信息
        /// </summary>
        /// <param name="year"></param>
        /// <param name="month"></param>
        /// <param name="branchID"></param>
        /// <returns></returns>
        public DataTable GetOrderAuditsByBranch(int year, int month, int branchID)
        {
            return DAL.GetOrderAuditsByBranch(year, month, branchID);
        }
    }
}
